/*
 * @Author: ayun chengyunwu@jiatui.com
 * @Date: 2023-07-10 10:35:21
 * @LastEditors: ayun chengyunwu@jiatui.com
 * @LastEditTime: 2023-07-10 10:37:14
 * @FilePath: /ift-economy-network-h5/src/reducer/store.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%A
 */
import {
  legacy_createStore,
  combineReducers,
} from 'redux'
import ProjectInfo, { InitStateInfo } from './ProjectInfo'

export type StoreT = {
  ProjectInfo: InitStateInfo
}

//  合并各个模块的reducer
const reducers = combineReducers({
  ProjectInfo
})

// 把仓库数据，浏览器redux-dev-tools，还有reduxThunk插件关联在store中
const store = legacy_createStore(
  reducers
)

export default store
